package cn.kgc.novel.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

//杨将
//小说内容

public class Bookcontext {

  private int cid;   //小说内容
  private int bid;    //书籍id
  private String title;   //章节
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createtime;//上传时间
  private int num; //每章字数
  private String contexts;//内容
  private String status; //审核状态
  private int uid; //作者id
  private int titleid;//章节
  private String reason;

  public String getReason() {
    return reason;
  }

  public void setReason(String reason) {
    this.reason = reason;
  }

  private Books books;

  private Type type;

  private Users users;

  public Users getUsers() {
    return users;
  }

  public void setUsers(Users user) {
    this.users = user;
  }

  public Books getBooks() {
    return books;
  }

  public void setBooks(Books books) {
    this.books = books;
  }

  public Type getType() {
    return type;
  }

  public void setType(Type type) {
    this.type = type;
  }

  public int getCid() {
    return cid;
  }

  public void setCid(int cid) {
    this.cid = cid;
  }

  public int getBid() {
    return bid;
  }

  public void setBid(int bid) {
    this.bid = bid;
  }

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public Date getCreatetime() {
    return createtime;
  }

  public void setCreatetime(Date createtime) {
    this.createtime = createtime;
  }

  public int getNum() {
    return num;
  }

  public void setNum(int num) {
    this.num = num;
  }

  public String getContexts() {
    return contexts;
  }

  public void setContexts(String contexts) {
    this.contexts = contexts;
  }

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public int getUid() {
    return uid;
  }

  public void setUid(int uid) {
    this.uid = uid;
  }

  public int getTitleid() {
    return titleid;
  }

  public void setTitleid(int titleid) {
    this.titleid = titleid;
  }

  @Override
  public String toString() {
    return "Bookcontext{" +
            "cid=" + cid +
            ", bid=" + bid +
            ", title='" + title + '\'' +
            ", createtime=" + createtime +
            ", num=" + num +
            ", contexts='" + contexts + '\'' +
            ", status='" + status + '\'' +
            ", uid=" + uid +
            ", titleid=" + titleid +
            ", reason='" + reason + '\'' +
            ", books=" + books +
            ", type=" + type +
            ", users=" + users +
            '}';
  }
}
